Frontend Forever App
We have a mobile app for you to download and use. And you can unlock many features in the app.
Get it now
Intall Later
Run
HTML
CSS
Javascript
Output
Document
1234 5678 9012 3456
@charset "UTF-8"; @import url(https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800); *, :after, :before { box-sizing: border-box; padding: 0; margin: 0; } @import url('https://fonts.cdnfonts.com/css/credit-card'); :root { font-family: "Credit Card" } *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } body { margin: 0; height: 100vh; width: 100%; background: #0c0c0c; overflow: hidden; display: grid; place-content: center; } @property --anim { syntax: "
"; inherits: true; initial-value: 0; } .card { --anim: 0; --radius: 0.75rem; width: 20rem; height: 12rem; border-radius: var(--radius); position: relative; display: grid; transition: --anim 300ms ease } .card:hover { --anim: 1; } .cardglow, .cardbg, .cardborder, .numbers { grid-area: 1/1/2/2; } .cardglow, .cardborder, .numbers { background: conic-gradient(#ff3b3b, #ffa801, #ffeb3b, #6cff3b, #0fbcf9, #5d62fb, #eb3bff, #ff3b3b); } .cardglow { border-radius: 0.25rem; filter: blur(calc(0.375rem + var(--anim) * 0.25rem)) hue-rotate(calc(20deg * var(--anim))); } .cardborder { border-radius: var(--radius); filter: hue-rotate(calc(20deg * var(--anim))); } .cardbg { margin: 0.125rem; border-radius: calc(var(--radius) - 0.125rem); background: none; backdrop-filter: contrast(50%) brightness(15%) blur(1.25rem); box-shadow: inset rgba(0,0,0,0.5) 0 0 0.625rem; display: grid; } .logo { position: absolute; width: 3rem; height: 2.5rem; margin: 1.25rem; clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 50% 100%, 0% 25%); backdrop-filter: brightness(666%) contrast(200%); } .numbers { background-clip: text; z-index: 20; color: transparent; text-align: center; padding-top: 37%; font-size: 1.125rem; filter: hue-rotate(calc(20deg * var(--anim))); } .visalogo { position: absolute; bottom: -2.75rem; right: 0; width: 4rem; height: 4rem; margin: 1.25rem; backdrop-filter: brightness(666%) contrast(200%); clip-path: url(#svgPath) }
console.log("Event Fired") if (location.pathname.match(/fullcpgrid/i) ? true : false) { document.documentElement.style.fontSize = "32px" }